﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DAL;
namespace BLL
{
   public class ReBLL
    {
        //修改图片
        public static int UpdateImages(string ryid, string images)
        {
            return ReDAL.UpdateImages(ryid,images);
        }
        //通过openid获取Ryxx
        public static DataTable GetRyxx(string Opid)
        {
            return ReDAL.GetRyxx(Opid);
        }
        //查询ryid
        public static string SelectRyid(string Opid)
        {
            return ReDAL.SelectRyid(Opid);
        }
        //通过ryid获取订单号
        public static string OrderRyid(string Order)
        {
            return ReDAL.OrderRyid(Order);
        }
        public static int IAUpdate(string openid,string money)
	{
	    return ReDAL.IAUpdate(openid, money);
	}
	//添加订单号
	public static int OrderNum1(string order, string DateTimesSuccess, int State)
	{
	    return ReDAL.OrderNum1(order, DateTimesSuccess, State);
	}
	public static int OrderNum(string order, double money, string rfkh, DateTime dateTimes ,int State)
	{
	    return ReDAL.OrderNum(order, money, rfkh, dateTimes, State);
	}
	//查询卡号
	public static string SelectRfkh(string Opid)
	{
	    return ReDAL.SelectRfkh(Opid);
	}
	//充值增加
	public static int ExecuteLiuShui(string rfkh, double bdje){
	    return ReDAL.ExecuteLiuShui(rfkh,bdje);
	}
	//将充值添加lssj记录
	public static int Flowrecord(string OpId, double moneys, string czlx){
	    return ReDAL.Flowrecord(OpId,moneys,czlx);
	}
	//获取订单号
	public static string OrderNu(string Order){
	    return ReDAL.OrderNu(Order);
	}
	//通过商户订单号获取Opid
	public static string ObtainOpid(string Order) 
	{
	    return ReDAL.ObtainOpid(Order);
	}
	//通过Opid获取ryid
	public static string ObtainRfkh(string Opid) 
	{
	    return ReDAL.ObtainRfkh(Opid);
	}
	//获取OrderNumber表ID列
	public static int NumID() 
	{
	    return ReDAL.NumID();
	}
    }
}
